DOMElement
PHP Manual

DOMElement::removeAttribute

(PHP 5)

DOMElement::removeAttributeRemoves attribute

Descripción

bool DOMElement::removeAttribute ( string $name )

Removes attribute named name from the element.

Lista de parámetros

name

The name of the attribute.

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.

Errors/Exceptions

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

Ver también


DOMElement
PHP Manual